﻿using System;
using System.Collections.Generic;
using Microsoft.Phone.Controls;

namespace WorkoutDictionary
{
    public class test
    {
        public string Date { get; set; }
        public string Type { get; set; }
    }

    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            List<test> dataitems = new List<test>();
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });
            dataitems.Add(new test { Date = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"), Type = "OneTwoThree" });

            this.ListBoxWorkouts.ItemsSource = dataitems;
        }
    }
}